<?php

namespace  App\Core\Utils\TwHelper;

use App\Core\Utils\TwHelper\Random;

/**
 * 验证码服务类
 */
class VerificationCode
{
    public static function getRandCode($num = 6)
    {
        return Random::getRandomPwd($num, 'number');
    }

    public static function getRegistCodeContent($code)
    {
        return sprintf('验证码%s，泄露有风险，请勿提供给他人。', $code);
    }

}